<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/assets/base/restaurantprintremind/common/css/style.css">
</head>
<div class="wraperr">
    <if condition="$status eq 3">
        <if condition="$is_sub eq 1 or $is_sub eq 2">
        <div class="content">
            <div class="top">
                <div class="hint"><img src="/assets/store/common/images/hint.png" alt=""/></div>
                <p class="font-18 margin-12">打印机异常提醒申请</p>
                <p>请确认是否开通打印机异常提醒</p>
                <p>功能，开通后你将收到打印机异常提醒</p>
            </div>
            <div class="bottom">
                <a href="/base/restaurantPrintRemind/remindBind/sid/{BEESCRM:$sid}/sub_account_id/{BEESCRM:$sub_account_id}" class="btn visit">确认</a>
                <a href="#" class="btn" onclick="WeixinJSBridge.call('closeWindow');">拒绝</a>
            </div>
        </div>
        <else/>
        <div class="content">
            <div class="top">
                <div class="hint"><img src="/assets/store/common/images/gantan.png" alt=""/></div>
                <p class="font-18 margin-12">还未关注公众号</p>
                <p>请先关注【滨江后勤】公众号</p>
                <p>再申请提醒功能</p>
            </div>
            <div class="bottom">
               <div class="QR-code">
                   <eq name="wechatId" value="15">
                       <img src="/assets/base/restaurantprintremind/common/images/yungan.jpg" alt=""/>
                   <else/>
                       <img src="/assets/base/restaurantprintremind/common/images/tongli.jpg" alt=""/>
                   </eq>
               </div>
            </div>
        </div>
        </if>
    <else/>
        <if condition="$status eq 0">
            <div class="content height-32">
                <div class="top">
                    <div class="hint">
                        <img src="/assets/base/restaurantprintremind/common/images/gou.png" alt=""/>
                    </div>
                    <p class="font-18 margin-12">申请已提交</p>
                    <p>请耐心等待后台审核，感谢您对我们的支持</p>
                </div>
                <a href="#" class="btn visit margin-t" id="remind_finish">完成</a>
            </div>
        <elseif condition="$status eq 1"/>
            <div class="content height-32">
                <div class="top">
                    <div class="hint">
                        <img src="/assets/base/restaurantprintremind/common/images/gou.png" alt=""/>
                    </div>
                    <p class="font-18 margin-12">申请已通过</p>
                    <p>今后您将会收到打印机异常提醒消息，感谢您对我们的支持</p>
                </div>
                <a href="" class="btn visit margin-t" id="remind_finish">完成</a>
            </div>
        <else/>
            <div class="content height-32">
                <div class="top">
                    <div class="hint">
                        <img src="/assets/base/restaurantprintremind/common/images/gantan.png" alt=""/>
                    </div>
                    <p class="font-18 margin-12">申请未通过</p>
                    <p>请重新申请，感谢您对我们的支持</p>
                </div>
                <a href="/base/store/remindBind/store_id/{BEESCRM:$storeId}" class="btn visit margin-t">完成</a>
            </div>
        </if>
    </if>
</div>


<body>
<!--引入jsAPI的功能js-->
<script src="https://as.alipayobjects.com/g/component/antbridge/1.1.1/antbridge.min.js"></script>
<!--获取城市列表功能8.1以上钱包支持-->

<script src="/assets/store/common/js/jquery-2.1.3.min.js"></script>
<script>
    $(function () {
        var height = $(window).height();
        $('body,.wraperr').css('height', height);
        $(document).on('click','#remind_finish',function () {
            var browser = "{BEESCRM:$browser}";
            if(browser == 2){
                if(navigator.userAgent.indexOf("AlipayClient")===-1){
                    alert('请在支付宝钱包内运行');
                }else{
                    if((Ali.alipayVersion).slice(0,3)>=8.1){
                        AlipayJSBridge.call('closeWebview');
                    }else{
                        Ali.alert({
                            title: '亲',
                            message: '请升级您的钱包到最新版',
                            button: '确定'
                        });
                    }
                }
            } else {
                WeixinJSBridge.call('closeWindow');
            }
        });
    })
</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</body>
</html>